package org.springframework.samples.mvc.form;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

import javax.validation.constraints.Min;
import javax.validation.constraints.Past;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;
import org.springframework.format.annotation.NumberFormat.Style;
import org.springframework.samples.mvc.convert.MaskFormat;

public class FormBean {

	@NotEmpty
	private String goal1;

	private String goal2;

	private String goal3;

	private String goal4;

	private String goal5;

	private String goal6;

	public void setGoal1(String goal1) {
		this.goal1 = goal1;
	}

	public void setGoal2(String goal2) {
		this.goal1 = goal2;
	}

	public void setGoal3(String goal3) {
		this.goal3 = goal3;
	}

	public void setGoal4(String goal4) {
		this.goal4 = goal4;
	}

	public void setGoal5(String goal5) {
		this.goal5 = goal5;
	}

	public void setGoal6(String goal6) {
		this.goal6 = goal6;
	}

	public String getGoal1() {
		return goal1;
	}

	public String getGoal2() {
		return goal2;
	}

	public String getGoal3() {
		return goal3;
	}

	public String getGoal4() {
		return goal4;
	}

	public String getGoal5() {
		return goal5;
	}

	public String getGoal6() {
		return goal6;
	}

	/*
	 * @Min(21) private int age;
	 * 
	 * @DateTimeFormat(iso=ISO.DATE)
	 * 
	 * @Past private Date birthDate;
	 * 
	 * @MaskFormat("(###) ###-####") private String phone;
	 * 
	 * @NumberFormat(pattern="$###,###.00") private BigDecimal currency;
	 * 
	 * @NumberFormat(style=Style.PERCENT) private BigDecimal percent;
	 * 
	 * private InquiryType inquiry;
	 * 
	 * private String inquiryDetails;
	 * 
	 * private boolean subscribeNewsletter;
	 * 
	 * private Map<String, String> additionalInfo;
	 * 
	 * public String getName() { return name; }
	 * 
	 * public void setName(String name) { this.name = name; }
	 * 
	 * public int getAge() { return age; }
	 * 
	 * public void setAge(int age) { this.age = age; }
	 * 
	 * public Date getBirthDate() { return birthDate; }
	 * 
	 * public void setBirthDate(Date birthDate) { this.birthDate = birthDate; }
	 * 
	 * public String getPhone() { return phone; }
	 * 
	 * public void setPhone(String phone) { this.phone = phone; }
	 * 
	 * public BigDecimal getCurrency() { return currency; }
	 * 
	 * public void setCurrency(BigDecimal currency) { this.currency = currency;
	 * }
	 * 
	 * public BigDecimal getPercent() { return percent; }
	 * 
	 * public void setPercent(BigDecimal percent) { this.percent = percent; }
	 * 
	 * public InquiryType getInquiry() { return inquiry; }
	 * 
	 * public void setInquiry(InquiryType inquiry) { this.inquiry = inquiry; }
	 * 
	 * public String getInquiryDetails() { return inquiryDetails; }
	 * 
	 * public void setInquiryDetails(String inquiryDetails) {
	 * this.inquiryDetails = inquiryDetails; }
	 * 
	 * public boolean isSubscribeNewsletter() { return subscribeNewsletter; }
	 * 
	 * public void setSubscribeNewsletter(boolean subscribeNewsletter) {
	 * this.subscribeNewsletter = subscribeNewsletter; }
	 * 
	 * public Map<String, String> getAdditionalInfo() { return additionalInfo; }
	 * 
	 * public void setAdditionalInfo(Map<String, String> additionalInfo) {
	 * this.additionalInfo = additionalInfo; }
	 * 
	 * public String toString() { StringBuilder sb = new StringBuilder();
	 * sb.append("properties name="); if (name != null) {
	 * sb.append("'").append(name).append("', "); } else {
	 * sb.append(name).append(", "); }
	 * sb.append("age=").append(age).append(", ");
	 * sb.append("birthDate=").append(birthDate).append(", ");
	 * sb.append("phone="); if (phone != null) {
	 * sb.append("'").append(phone).append("', "); } else {
	 * sb.append(phone).append(", "); }
	 * sb.append("currency=").append(currency).append(", ");
	 * sb.append("percent=").append(percent).append(", ");
	 * sb.append("inquiry=").append(inquiry).append(", ");
	 * sb.append("inquiryDetails="); if (inquiryDetails != null) {
	 * sb.append("'").append(inquiryDetails).append("', "); } else {
	 * sb.append(inquiryDetails).append(", "); }
	 * sb.append("subscribeNewsletter="
	 * ).append(subscribeNewsletter).append(", ");
	 * sb.append("additionalInfo=").append(additionalInfo); return
	 * sb.toString(); }
	 */
}
